<?
include("../../include/parcer.inc");

if(isset($menu)){
    switch($menu){
	case "setup":
	    $menu_table= "<tr><td class=submenu height=\"20\" id=sub1 onmouseover=\"over_sub(1)\" onmouseout=\"out_sub(1)\" onClick=\"click_sub('all')\">Общие</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub2 onmouseover=\"over_sub(2)\" onmouseout=\"out_sub(2)\" onClick=\"click_sub('e1')\">E1 PRI платы</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub3 onmouseover=\"over_sub(3)\" onmouseout=\"out_sub(3)\" onClick=\"click_sub('cdr')\">CDR</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub4 onmouseover=\"over_sub(4)\" onmouseout=\"out_sub(4)\" onClick=\"click_sub('option')\">Опции</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub5 onmouseover=\"over_sub(5)\" onmouseout=\"out_sub(5)\" onClick=\"click_sub('modules')\">Модули</td></tr>"	
			."<tr><td class=submenu height=\"20\" id=sub6 onmouseover=\"over_sub(6)\" onmouseout=\"out_sub(6)\" onClick=\"click_sub('radius')\">Radius</td></tr>"	
			."<tr><td class=submenu height=\"20\" id=sub7 onmouseover=\"over_sub(7)\" onmouseout=\"out_sub(7)\" onClick=\"click_sub('rtp')\">RTP</td></tr>"	
			."<tr><td class=submenu height=\"20\" id=sub8 onmouseover=\"over_sub(8)\" onmouseout=\"out_sub(8)\" onClick=\"click_sub('vmail')\">Голосовая почта</td></tr>";	
	break;
	case "conf":
	    $menu_table= "<tr><td class=submenu height=\"20\" id=sub11 onmouseover=\"over_sub(11)\" onmouseout=\"out_sub(11)\" onClick=\"click_sub('sip')\">SIP</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub12 onmouseover=\"over_sub(12)\" onmouseout=\"out_sub(12)\" onClick=\"click_sub('e1p')\">E1</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub13 onmouseover=\"over_sub(13)\" onmouseout=\"out_sub(13)\" onClick=\"click_sub('oks')\">ОКС-7</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub14 onmouseover=\"over_sub(14)\" onmouseout=\"out_sub(14)\" onClick=\"click_sub('mgcp')\">MGCP</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub15 onmouseover=\"over_sub(15)\" onmouseout=\"out_sub(15)\" onClick=\"click_sub('skinny')\">Skinny</td></tr>"	
			."<tr><td class=submenu height=\"20\" id=sub16 onmouseover=\"over_sub(16)\" onmouseout=\"out_sub(16)\" onClick=\"click_sub('iax')\">IAX</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub17 onmouseover=\"over_sub(17)\" onmouseout=\"out_sub(17)\" onClick=\"click_sub('ooh323')\">H.323</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub18 onmouseover=\"over_sub(18)\" onmouseout=\"out_sub(18)\" onClick=\"click_sub('console')\">Консоль</td></tr>";	
	break;
	case "marshrut":
	    $menu_table= "<tr><td class=submenu height=\"20\" id=sub21 onmouseover=\"over_sub(21)\" onmouseout=\"out_sub(21)\" onClick=\"click_sub('in')\">Входящая</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub22 onmouseover=\"over_sub(22)\" onmouseout=\"out_sub(22)\" onClick=\"click_sub('out')\">Исходящая</td></tr>";
	break;
	case "rezerv":
	    $menu_table= "<tr><td class=submenu height=\"20\" id=sub31 onmouseover=\"over_sub(31)\" onmouseout=\"out_sub(31)\" onClick=\"click_sub('save')\">Сохранить</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub32 onmouseover=\"over_sub(32)\" onmouseout=\"out_sub(32)\" onClick=\"click_sub('restore')\">Восстановить</td></tr>";
	break;
	case "access":
	    $menu_table= "<tr><td class=submenu height=\"20\" id=sub41 onmouseover=\"over_sub(41)\" onmouseout=\"out_sub(41)\" onClick=\"click_sub('admins')\">Администраторы</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub42 onmouseover=\"over_sub(42)\" onmouseout=\"out_sub(42)\" onClick=\"click_sub('users')\">Юзеры</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub43 onmouseover=\"over_sub(43)\" onmouseout=\"out_sub(43)\" onClick=\"click_sub('adm_prof')\">Профили админов</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub44 onmouseover=\"over_sub(44)\" onmouseout=\"out_sub(44)\" onClick=\"click_sub('usr_prof')\">Профили юзеров</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub45 onmouseover=\"over_sub(45)\" onmouseout=\"out_sub(45)\" onClick=\"click_sub('manage')\">Управление</td></tr>";
	break;
	case "info":
	    $menu_table= "<tr><td class=submenu height=\"20\" id=sub51 onmouseover=\"over_sub(51)\" onmouseout=\"out_sub(51)\" onClick=\"click_sub('usr_info')\">Пользователи</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub52 onmouseover=\"over_sub(52)\" onmouseout=\"out_sub(52)\" onClick=\"click_sub('activity')\">Активность</td></tr>"
			."<tr><td class=submenu height=\"20\" id=sub53 onmouseover=\"over_sub(53)\" onmouseout=\"out_sub(53)\" onClick=\"click_sub('system')\">Система</td></tr>";
	break;

    }
    echo xparse("../../tpl/menu_table.html");
}

?>